<template>
    <div>数字：{{ number }}</div>
    <button @click="addNumber">点击数字+1</button>
</template>
<script>
export default{
    data(){
        return{
            number:0
        }
    },
    methods:{
        addNumber(){
            this.number++
        }
    }
}
</script>